package grape.crm.rest.company.mapper;

import grape.crm.service.company.po.Company;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.crm.rest.company.form.CompanyCreateForm;
import grape.crm.rest.company.form.CompanyUpdateForm;
import grape.crm.rest.company.form.CompanyListPageForm;
import grape.crm.rest.company.vo.CompanyVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 公司表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-09-14
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface CompanyWebMapper extends WebMapper<CompanyVo, Company> {

    Company formToPo(CompanyCreateForm f);
    Company formToPo(CompanyUpdateForm f);
    Company formToPo(CompanyListPageForm f);
}
